无需按回车检查用户输入(){
    stty -icanon -echo min 1 time 0
    dd bs=1 count=1 2>/dev/null
    stty sane
}

编码URL() {
    encoded=""
    local string="$URL"
    local length=${#string}
    local i=0
    
    while [ $i -lt $length ]; do
        local c="${string:$i:1}"
        case "$c" in
            [a-zA-Z0-9.~_-]) encoded="$encoded$c" ;;
            *) 
                local hex=$(printf '%%%02X' "'$c")
                encoded="$encoded$hex"
                ;;
        esac
        i=$((i + 1))
    done
}
解码URL() {
    decoded=""
    local string="$URL"
    local length=${#string}
    local i=0
    
    while [ $i -lt $length ]; do
        local c="${string:$i:1}"
        if [ "$c" = "%" ] && [ $((i + 2)) -lt $length ]; then
            local hex1="${string:$((i+1)):1}"
            local hex2="${string:$((i+2)):1}"
            local hex_code="$hex1$hex2"
            
            local char=$(printf "\\x$hex_code")
            decoded="$decoded$char"
            i=$((i + 3))
        else
            decoded="$decoded$c"
            i=$((i + 1))
        fi
    done
}

保存or加载函数() {
    # 调试：打印所有输入变量
    : <<'COMMENT0'
    echo -e "${CYAN}调试输入参数："
    echo "current_menu=$current_menu"
    echo "is_BG_PUBG=$is_BG_PUBG"
    echo "is_KC_KPM=$is_KC_KPM"
    echo "is_local_cloud=$is_local_cloud${NC}"
    echo
COMMENT0

    clear
    
    if [ "$is_local_cloud" = "本地" ]; then
        case "$is_BG_PUBG" in
            "PUBG Mobile")
                case "$is_KC_KPM" in
                    "KC")
                        Config_file="/data/user/0/com.android.kernel/Config.txt"
                        Config_file_Save="/storage/emulated/0/DCIM/automation/KC_PUBG_界面.txt"
                        recoil_file="/data/local/tmp/recoil_data_kcgl.ini"
                        recoil_file_Save="/storage/emulated/0/DCIM/automation/KC_PUBG_后坐力.ini"
                        ;;
                    "KPM")
                        Config_file="/data/user/0/com.android.elusw/Config.txt"
                        Config_file_Save="/storage/emulated/0/DCIM/automation/KPM_PUBG_界面.txt"
                        recoil_file="/data/local/tmp/recoil_data_kpmgl.ini"
                        recoil_file_Save="/storage/emulated/0/DCIM/automation/KPM_PUBG_后坐力.ini"
                        ;;
                esac
                ;;
            "和平精英")
                case "$is_KC_KPM" in
                    "KC")
                        Config_file="/data/user/0/com.game.kernel/Config.txt"
                        Config_file_Save="/storage/emulated/0/DCIM/automation/KC_和平精英_界面.txt"
                        recoil_file="/data/local/tmp/recoil_data_kccn.ini"
                        recoil_file_Save="/storage/emulated/0/DCIM/automation/KC_和平精英_后坐力.ini"
                        ;;
                    "KPM")
                        Config_file="/data/user/0/com.android.eluswcn/Config.txt"
                        Config_file_Save="/storage/emulated/0/DCIM/automation/KPM_和平精英_界面.txt"
                        recoil_file="/data/local/tmp/recoil_data_kpmcn.ini"
                        recoil_file_Save="/storage/emulated/0/DCIM/automation/KPM_和平精英_后坐力.ini"
                        ;;
                esac
                ;;
        esac
        
        if [ "$current_menu" = "保存" ]; then
            case "$Save" in
                "1")
                    cp "$Config_file" "$Config_file_Save"
                    ;;
                "2")
                    cp "$recoil_file" "$recoil_file_Save"
                    ;;
                "3")
                    cp "$Config_file" "$Config_file_Save"
                    cp "$recoil_file" "$recoil_file_Save"
                    ;;
            esac
        elif [ "$current_menu" = "加载" ]; then
            case "$Save" in
                "1")
                    cp "$Config_file_Save" "$Config_file"
                    ;;
                "2")
                    cp "$recoil_file_Save" "$recoil_file"
                    ;;
                "3")
                    cp "$Config_file_Save" "$Config_file"
                    cp "$recoil_file_Save" "$recoil_file"
                    ;;
            esac
        fi 
        
    elif [ "$is_local_cloud" = "云端" ]; then
        case "$is_BG_PUBG" in
            "PUBG Mobile")
                case "$is_KC_KPM" in
                    "KC")
                        recoil_file="/data/local/tmp/recoil_data_kcgl.ini"
                        Config_file="/data/user/0/com.android.kernel/Config.txt"
                        case "$Save" in
                            "1")
                                file_entries=(
                                    "云端_KC_PUBG_30_后坐力.ini:1"
                                    "云端_KC_PUBG_30_界面.ini:1"                                        
                                )
                                ;;
                            "2")
                                file_entries=(
                                    "云端_KC_PUBG_60_后坐力.ini:1"
                                    "云端_KC_PUBG_60_界面.ini:1"
                                )
                                ;;
                            "3")
                                file_entries=(
                                    "云端_KC_PUBG_80_后坐力.ini:1"
                                    "云端_KC_PUBG_80_界面.ini:1"
                                )
                                ;;
                        esac
                        ;;
                    "KPM")
                        recoil_file="/data/local/tmp/recoil_data_kpmgl.ini"
                        Config_file="/data/user/0/com.android.elusw/Config.txt"
                        case "$Save" in
                            "1")
                                file_entries=(
                                    "云端_KPM_PUBG_30_后坐力.ini:1"
                                    "云端_KPM_PUBG_30_界面.ini:1"
                                )
                                ;;
                            "2")
                                file_entries=(
                                    "云端_KPM_PUBG_60_后坐力.ini:1"
                                    "云端_KPM_PUBG_60_界面.ini:1"
                                )
                                ;;
                            "3")
                                file_entries=(
                                    "云端_KPM_PUBG_60_后坐力.ini:1"
                                    "云端_KPM_PUBG_60_界面.ini:1"
                                )
                                ;;
                        esac
                        ;;
                esac
                ;;
            "和平精英")
                case "$is_KC_KPM" in
                    "KC")
                        recoil_file="/data/local/tmp/recoil_data_kccn.ini"
                        Config_file="/data/user/0/com.game.kernel/Config.txt"
                        case "$Save" in
                            "1")
                                file_entries=(
                                    "云端_KC_和平精英_30_后坐力.ini:1"
                                    "云端_KC_和平精英_30_界面.ini:1"                                        
                                )
                                ;;
                            "2")
                                file_entries=(
                                    "云端_KC_和平精英_60_后坐力.ini:1"
                                    "云端_KC_和平精英_60_界面.ini:1"
                                )
                                ;;
                            "3")
                                file_entries=(
                                    "云端_KC_和平精英_80_后坐力.ini:1"
                                    "云端_KC_和平精英_80_界面.ini:1"
                                )
                                ;;
                        esac
                        ;;
                    "KPM")
                        recoil_file="/data/local/tmp/recoil_data_kpmcn.ini"
                        Config_file="/data/user/0/com.android.eluswcn/Config.txt"
                        case "$Save" in
                            "1")
                                file_entries=(
                                    "云端_KPM_和平精英_30_后坐力.ini:1"
                                    "云端_KPM_和平精英_30_界面.ini:1"
                                )
                                ;;
                            "2")
                                file_entries=(
                                    "云端_KPM_和平精英_60_后坐力.ini:1"
                                    "云端_KPM_和平精英_60_界面.ini:1"
                                )
                                ;;
                            "3")
                                file_entries=(
                                    "云端_KPM_和平精英_60_后坐力.ini:1"
                                    "云端_KPM_和平精英_60_界面.ini:1"
                                )
                                ;;
                        esac
                        ;;
                esac
                ;;
        esac
        
        downloaded_count=0
        skipped_count=0
        
        for entry in "${file_entries[@]}"; do
            
            IFS=':' read -r file enable_flag <<< "$entry"
            
            if [ "$enable_flag" -eq 1 ]; then
                URL="$file"
                编码URL
                encoded_file="$encoded"
                
                full_url="${base_url}${encoded_folder}/${encoded_file}"
                
                busybox wget -q -O "$file" "$full_url"
                # wget -q -L -O "$file" "$full_url"
                # curl -s -L -o "$file" "$full_url"
                
                        if [ "$file" == *"界面"* ]; then  
                               cp "./$file" "$Config_file"
                            #   cp "./$file" "/storage/emulated/0/123云盘/1/配置/界面.ini"
                        else
                               cp "./$file" "$recoil_file"
                            #   cp "./$file" "/storage/emulated/0/123云盘/1/配置/后坐力.ini"
                        fi
                
                if [ $? -eq 0 ]; then
                    echo "✓ 下载成功: $file"                   
                    downloaded_count=$((downloaded_count + 1))
                else
                    echo "✗ 下载失败: $file"
                fi
                echo ""
            else
                # echo "跳过下载: $file (开关已禁用)"
                skipped_count=$((skipped_count + 1))
                echo ""
            fi
            sleep 4
        done
        
        
        rm -f ./云端*
        # echo "下载完成！"
        # echo "成功下载: $downloaded_count 个文件"
        # echo "跳过下载: $skipped_count 个文件"
        # echo "文件已保存到当前目录"       
    fi

    # 旧的嵌套if结构
    : <<'COMMENT1'
    if [ "$is_BG_PUBG" = "PUBG Mobile" ]; then
        if [ "$is_KC_KPM" = "KC" ]; then
            if [ "$is_local_cloud" = "本地" ]; then
                Config_file="/data/user/0/com.android.kernel/Config.txt"
                Config_file_Save="/storage/emulated/0/DCIM/automation/KC_PUBG_界面.txt"
                recoil_file="/data/local/tmp/recoil_data_kcgl.ini"
                recoil_file_Save="/storage/emulated/0/DCIM/automation/KC_PUBG_后坐力.ini"
            fi
        elif [ "$is_KC_KPM" = "KPM" ]; then
            if [ "$is_local_cloud" = "本地" ]; then
                Config_file="/data/user/0/com.android.elusw/Config.txt"
                Config_file_Save="/storage/emulated/0/DCIM/automation/KPM_PUBG_界面.txt"
                recoil_file="/data/local/tmp/recoil_data_kpmgl.ini"
                recoil_file_Save="/storage/emulated/0/DCIM/automation/KPM_PUBG_后坐力.ini"
            fi
        fi
    elif [ "$is_BG_PUBG" = "和平精英" ]; then
        if [ "$is_KC_KPM" = "KC" ]; then
            if [ "$is_local_cloud" = "本地" ]; then
                Config_file="/data/user/0/com.game.kernel/Config.txt"
                Config_file_Save="/storage/emulated/0/DCIM/automation/KC_和平精英_界面.txt"
                recoil_file="/data/local/tmp/recoil_data_kccn.ini"
                recoil_file_Save="/storage/emulated/0/DCIM/automation/KC_和平精英_后坐力.ini"
            fi
        elif [ "$is_KC_KPM" = "KPM" ]; then
            if [ "$is_local_cloud" = "本地" ]; then
                Config_file="/data/user/0/com.android.eluswcn/Config.txt"
                Config_file_Save="/storage/emulated/0/DCIM/automation/KPM_和平精英_界面.txt"
                recoil_file="/data/local/tmp/recoil_data_kpmcn.ini"
                recoil_file_Save="/storage/emulated/0/DCIM/automation/KPM_和平精英_后坐力.ini"
            fi
        fi
    fi
COMMENT1

    # 调试输出
    : <<'COMMENT2'
    clear
    echo -e "\n${CYAN}---------------调试输出---------------${NC}"
    echo -e "current_menu: $current_menu"
    echo -e "is_BG_PUBG: $is_BG_PUBG"
    echo -e "is_KC_KPM: $is_KC_KPM"
    echo -e "is_local_cloud: $is_local_cloud"
    echo -e "\n${CYAN}---------------文件调试输出---------------${NC}"
    echo -e "Config_文件: $Config_file"
    echo -e "Config_文件_保存: $Config_file_Save"
    echo -e "recoil_文件: $recoil_file"
    echo -e "recoil_文件_保存: $recoil_file_Save"
COMMENT2
}



清理驱动残留文件(){
    clear
    for RES in "${residual[@]}"; do
        if [ -f "$RES" ]; then
            rm -f "$RES"
            echo -e "${GREEN}文件 $RES 已成功删除。${NC}"
        elif [ -d "$RES" ]; then
            rm -rf "$RES"
            echo -e "${GREEN}文件夹 $RES 已成功删除。${NC}"
        else
            echo -e "${YELLOW}路径 $RES 无残留，无需清理。${NC}"
        fi
    done
    clear
    sleep 10

}

解决牛头futile_hide_10(){
    clear
    path=$(pm list packages -f | grep icu.nullptr.nativetest | sed 's/package://' | awk -F'base' '{print $1}')
    find $path -type f -name "*.*dex" -exec rm {} \;
    echo -e "\n${GREEN}已解决牛头futile_hide_10问题。${NC}"
    sleep 3
    clear
}

修改设备ID(){
    clear
    am force-stop com.tencent.mf.uam


    PKG=com.tencent.mf.uam
    ID=$(grep $PKG /data/system/users/0/settings_ssaid.xml | awk -F'"' '{print $6}')
    for i in $(seq 16)
    do P=$P$(uuidgen|head -c 1|tr '-' -d)
    done
    sed -i s/$ID/$P/g /data/system/users/0/settings_ssaid.xml

    chmod 777 *.sh
    MATRIX="0123456789qwertyuiopasdfghjklzxcvbnm"
    LENGTH="16"
    while [ "${n:=1}" -le "$LENGTH" ]
    do
            PASS="$PASS${MATRIX:$(($RANDOM%${#MATRIX})):1}"
            let n+=1
    done
            settings put secure android_id "$PASS"
            

    echo 设备ID已更改
    echo 当前ID


    MATRIX="0123456789qwertyuiopasdfghjklzxcvbnm"
    LENGTH="16"
    while [ "${n:=1}" -le "$LENGTH" ]
    do
            PASS="$PASS${MATRIX:$(($RANDOM%${#MATRIX})):1}"
            let n+=1
    done
            echo "$PASS"

    sleep 2
    #!/bin/sh

    # sysctl -w fs.inotify.max_user_watches=8192
    # sysctl -w fs.inotify.max_user_instances=128
    # sysctl -w fs.inotify.max_queued_events=16384


    setenforce 1
    dmesg -c >/dev/null 2>&1
    logcat -c >/dev/null 2>&1

    data_UAM=/data/user/0/com.tencent.mf.uam
    sdcard_UAM=/storage/emulated/0/Android/data/com.tencent.mf.uam
    uedir_UAM=/storage/emulated/0/Android/data/com.tencent.mf.uam/files/UE4Game/UAGame/UAGame/Saved


    rm -Rf /sdcard/ramdump


    rm -rf /storage/emulated/0/Android/data/org.telegram.messenger.web/*

    dmesg -c >/dev/null 2>&1
    logcat -c -b main -b events -b radio -b system >/dev/null 2>&1


    clear
            Pf_R() { sleep 0.$RANDOM ;echo "\a\033[5m\033[31m[-]$@" ;sleep 0.$RANDOM ;echo "\033[1A\033[2K\r\a\033[33m[\\]$@\033[K" ;}
            Pf_A() { sleep 0.$RANDOM ;echo "\033[1A\033[2K\r\a\033[32m[+]$*\033[K" ;echo ;}
            Id_Path=/data/system/users/0
            rm -rf $Id_Path/registered_services $Id_Path/app_idle_stats.xml
            Id_File=$Id_Path/settings_ssaid.xml
            abx2xml -i $Id_File
            View_id() { grep $1 $Id_File | awk -F '"' '{print $6}' ;}
            Random_Id_1() { cat /proc/sys/kernel/random/uuid ;}
            Amend_Id() { sed -i "s#$1#$2#g" $Id_File ;}
            Userkey_Uid=`View_id userkey`
            Pf_R 系统UUID：$Userkey_Uid
            Amend_Id $Userkey_Uid $(echo `Random_Id_1``Random_Id_1` | tr -d - | tr a-z A-Z)
            printf "\033[1A\033[2K"
            printf "\033[1A\033[2K"
            Amend_Id $Pkg_Aid `Random_Id_1 | tr -d - | head -c 16`
            xml2abx -i $Id_File
            Random_Id_2() {
                Min=$1
                Max=$(($2 - $Min + 1))
                Num=`cat /dev/urandom | head | cksum | awk -F ' ' '{print $1}'`
                echo $(($Num % $Max + $Min))
            }
            Serial_Id=/sys/devices/soc0/serial_number
            Pf_R 主板ID：`cat $Serial_Id`
            Tmp=/sys/devices/virtual/kgsl/kgsl/full_cache_threshold
            Random_Id_2 1100000000 2000000000 > $Tmp
            mount | grep -q $Serial_Id && umount $Serial_Id
            mount --bind $Tmp $Serial_Id
            Pf_A 主板ID：`cat $Serial_Id`
            IFS=$'\n'
            for i in `getprop | grep imei | awk -F '[][]' '{print $2}'`
            do
                Imei=`getprop $i`
                [ `echo $Imei | wc -c` -lt 16 ] && continue
                let a++
                printf "\r\033[31m[-]IMEI：$Imei\033[K"
                printf "\r\033[33m[\\]IMEI：$Imei\033[K"
                resetprop $i `echo $((RANDOM % 80000 + 8610000))00000000`
                printf "\r\033[32m[+]IMEI：`getprop $i`\033[K"
            done
            sleep 0.88s
            printf "\r[+]IMEI：Reset $a⁺\033[K"
            echo \\n
            Oa_Id=/data/system/oaid_persistence_0
            Pf_R OAID：`cat $Oa_Id`
            printf `Random_Id_1 | tr -d - | head -c 16` > $Oa_Id
            Pf_A OAID：`cat $Oa_Id`
            Va_Id=/data/system/vaid_persistence_platform
            Pf_R VAID：`cat $Va_Id`
            printf `Random_Id_1 | tr -d - | head -c 16` > $Va_Id
            Pf_A VAID：`cat $Va_Id`
            Pf_R 序列号：`getprop ro.serialno`
            resetprop ro.serialno `Random_Id_1 | head -c 8`
            Pf_A 序列号：`getprop ro.serialno`
            Pf_R 设备ID：`settings get secure android_id`
            settings put secure android_id `Random_Id_1 | tr -d - | head -c 16`
            Pf_A 设备ID：`settings get secure android_id`
            Pf_R 蓝牙Mac地址：`settings get secure bluetooth_address`
            settings put secure bluetooth_address `Random_Id_1 | sed 's/-//g ;s/../&:/g' | head -c 17 | tr a-z A-Z`
            Pf_A 蓝牙Mac地址：`settings get secure bluetooth_address`
            Pf_R 版本ID：`getprop ro.build.id`
            resetprop ro.build.id UKQ1.$((RANDOM % 20000 + 30000)).001
            Pf_A 版本ID：`getprop ro.build.id`
            Pf_R CPU_ID：`getprop ro.boot.cpuid`
            resetprop ro.boot.cpuid 0x00000`Random_Id_1 | tr -d - | head -c 11`
            Pf_A CPU_ID：`getprop ro.boot.cpuid`
            Pf_R OEM_ID：`getprop ro.ril.oem.meid`
            resetprop ro.ril.oem.meid 9900$((RANDOM % 8000000000 + 1000000000))
            Pf_A OEM_ID：`getprop ro.ril.oem.meid`
            Pf_R 广告ID：`settings get global ad_aaid`
            settings put global ad_aaid `Random_Id_1`
            Pf_A 广告ID：`settings get global ad_aaid`
            Pf_R UUID：`settings get global extm_uuid`
            settings put global extm_uuid `Random_Id_1`
            Pf_A UUID：`settings get global extm_uuid`
            Pf_R 指纹UUID：`settings get system key_mqs_uuid`
            settings put system key_mqs_uuid `Random_Id_1`
            Pf_A 指纹UUID：`settings get system key_mqs_uuid`
            Sum=$(getprop ro.build.fingerprint)
            sleep 0.$RANDOM
            echo "\a\033[5m\033[31m[-]指纹密钥：$Sum"
            sleep 0.$RANDOM
            printf "\033[1A\033[2K"
            echo "\033[1A\033[2K\a\033[5m\033[33m[\\]指纹密钥：$Sum"
            sleep 0.$RANDOM
            printf "\033[1A\033[2K"
            for i in $(seq 1 $(echo "$Sum" | grep -o [0-9] | wc -l))
            do
                Sum=$(echo "$Sum" | sed "s/[0-9]/$(($RANDOM % 10))/$i")
            done
            resetprop ro.build.fingerprint "$Sum"
            echo "\033[1A\033[2K\a\033[5m\033[32m[+]指纹密钥：$(getprop ro.build.fingerprint)\n"
            Pf_R GC驱动器ID：`settings get global gcbooster_uuid`
            settings put global gcbooster_uuid `Random_Id_1`
            Pf_A GC驱动器ID：`settings get global gcbooster_uuid`
            Pf_R IP地址：`curl -s ipinfo.io/ip`
            svc data disable
            svc wifi disable
            sleep 5
            svc data enable
            svc wifi enable
            until ping -c 1 223.5.5.5 &>/dev/null
            do
                sleep 1
            done
            Pf_A IP地址：`curl -s ipinfo.io/ip`
            IFS=$'\n'
            Mac_File=/sys/class/net/wlan0/address
            Pf_R Wifi_Mac地址：`cat $Mac_File`
            mount | grep -q $Mac_File && umount $Mac_File
            svc wifi disable
            ifconfig wlan0 down
            sleep 1
            Mac=`Random_Id_1 | sed 's/-//g ;s/../&:/g' | head -c 17`
            ifconfig wlan0 hw ether $Mac
            for Wlan_Path in `find /sys/devices -name wlan0`
            do
                [ -f "$Wlan_Path/address" ] && {
                    chmod 644 "$Wlan_Path/address"
                    echo $Mac > "$Wlan_Path/address"
                }
            done
            chmod 0755 $Mac_File
            echo $Mac > $Mac_File
            for Wlan_Path in `find /sys/devices -name '*,wcnss-wlan'`
            do
                [ -f "$Wlan_Path/wcnss_mac_addr" ] && {
                    chmod 644 "$Wlan_Path/wcnss_mac_addr"
                    echo $Mac > "$Wlan_Path/wcnss_mac_addr"
                }
            done
            Tmp=/data/local/tmp/Mac_File
            echo $Mac > $Tmp
            mount --bind $Tmp $Mac_File
            ifconfig wlan0 up
            svc wifi enable
            sleep 1
            Pf_A Wifi_Mac地址：`cat $Mac_File`
            echo \\033[38m
            
    echo -e "已修改设备各种ID为随机" 奔放上号
    clear
}

清理游戏下发文件(){
    clear
    iptables -F
    iptables -X 
    iptables -Z
    iptables -t nat -F 
    echo "本地缓存数据处理成功"
    #清楚iptables规则
    iptables -F
    echo "iptables规则清除成功"
    ip6tables=/system/bin/ip6tables
    iptables=/system/bin/iptables
    #三角洲清除down
    rm -rf /data/data/com.tencent.tmgp.dfm/files/ano_tmp
    rm -rf /data/user/0/com.tencent.tmgp.dfm/files/ano_tmp
    rm -rf /data/data/com.tencent.tmgp.pubgmhd/files/ano_tmp
    rm -rf /data/user/0/com.tencent.tmgp.pubgmhd/files/ano_tmp
    rm -rf /storage/emulated/0/Android/data/com.tencent.tmgp.pubgmhd/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/SaveGames
    rm -rf /storage/emulated/0/Android/data/com.tencent.tmgp.pubgmhd/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/Config/Android/Updater.ini
    #cfm down
    rm -rf /data/data/com.tencent.tmgp.cf/files/ano_tmp
    rm -rf /data/user/0/com.tencent.tmgp.cf/files/ano_tmp
    #暗区突围清除down
    rm -rf /data/data/com.tencent.mf.uam/files/ano_tmp
    rm -rf /data/data/com.proximabeta.mf.uamo/files/ano_tmp
    rm -rf /data/user/0/com.proximabeta.mf.uamo/files/ano_tmp
    rm -rf /data/user/0/com.tencent.mf.uam/files/ano_tmp
    rm -rf /storage/emulated/0/Android/data/com.tencent.mf.uam/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/SaveGames
    rm -rf /storage/emulated/0/Android/data/com.tencent.mf.uam/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/Config/Android/Updater.ini
    #CFM清除down
    rm -rf /data/data/com.tencent.tmgp.cf/files/ano_tmp
    rm -rf /data/user/0/com.tencent.tmgp.cf/files/ano_tmp
    #修复第三方环境异常
    echo 16384 > /proc/sys/fs/inotify/max_queued_events
    echo 128 > /proc/sys/fs/inotify/max_user_instances
    echo 8192 > /proc/sys/fs/inotify/max_user_watches
    #清除王者荣耀日志
    echo -e "\n${GREEN}已清理游戏下发文件。${NC}"
    sleep 3
    clear
}
.